import { Entity, PrimaryGeneratedColumn, Column } from 'typeorm';

@Entity('member_attributes')
export class MemberAttributes {
  @PrimaryGeneratedColumn({
    name: 'id',
    type: 'int',
    comment: 'id',
  })
  id: number;

  @Column({
    name: 'member_id',
    type: 'int',
    default: 0,
    comment: '会员id',
  })
  memberId: number;

  @Column({
    name: 'group_id',
    type: 'int',
    default: 0,
    comment: '分组id',
  })
  groupId: number;

  @Column({
    name: 'tag_id',
    type: 'int',
    default: 0,
    comment: '标签id',
  })
  tagId: number;
}